package byx.container.annotation.CustomInjectTest.a;

import byx.container.annotation.extension.impl.CustomInjector;
import byx.container.annotation.annotation.Register;
import byx.container.core.Container;
import byx.container.core.ObjectFactory;

@Register
public class MyInjector2 implements CustomInjector {
    private final A a;

    public MyInjector2(A a) {
        this.a = a;
    }

    @Override
    public ObjectFactory<?> getObjectFactory(Container container) {
        return () -> a.msg() + " from container";
    }
}
